//
//  UILable+Extension.swift
//  sina----
//
//  Created by mac on 16/5/12.
//  Copyright © 2016年 mac. All rights reserved.
//

import UIKit

extension UILabel {

    convenience init(
        title: String,
        color: UIColor = UIColor.darkGrayColor(),
        font: CGFloat = 14,
        alignment: NSTextAlignment = .Left) {
        
        self.init()
        
        self.text = title
        self.textColor = color
        self.numberOfLines = 0
        self.textAlignment = alignment
        self.font = UIFont.systemFontOfSize(font)
            
        sizeToFit()
    }
    
}
